﻿using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

using Zorbo.Interface;

namespace Zorbo.Shell
{
    class Program
    {
        static AresServer server;


        static void Main(string[] args) {

            AppDomain.CurrentDomain.ProcessExit += ProcessExit;

            server = new AresServer(new TestConfig());
            server.PluginHost.LoadPlugin("Autoload");

            server.Start();

            Console.ReadKey();
        }

        static void ProcessExit(object sender, EventArgs e) {
            if (server != null) 
                server.Stop();
        }
    }
}
